package com.wt.admin.service.ai.impl.tools;

import org.springframework.ai.tool.annotation.Tool;
import org.springframework.context.i18n.LocaleContextHolder;

import java.time.LocalDateTime;

public class WeatherTools {

    @Tool(description = "获取当前天气")
    String getCurrentWeather() {
        return LocalDateTime.now().atZone(LocaleContextHolder.getTimeZone().toZoneId()).toString();
    }


}
